/* Auto-DSL 测试页面样式 */

:root {
    --primary-color: #0d6efd;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #fd7e14;
    --info-color: #0dcaf0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
}

.container-fluid {
    max-width: 1400px;
}

/* 标题样式 */
h1 {
    color: var(--primary-color);
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 卡片样式 */
.card {
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 10px;
    transition: transform 0.2s ease-in-out;
}

.card:hover {
    transform: translateY(-2px);
}

.card-header {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    color: white;
    border-radius: 10px 10px 0 0 !important;
    font-weight: 500;
}

/* 标签页样式 */
.nav-tabs {
    border-bottom: 2px solid var(--primary-color);
}

.nav-tabs .nav-link {
    border: none;
    color: var(--primary-color);
    font-weight: 500;
    padding: 12px 24px;
    margin-right: 5px;
    border-radius: 10px 10px 0 0;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
    background-color: rgba(13, 110, 253, 0.1);
    border-color: transparent;
}

.nav-tabs .nav-link.active {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    color: white !important;
    border-color: var(--primary-color);
}

/* 表单样式 */
.form-control, .form-select {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.form-label {
    font-weight: 500;
    color: var(--dark-color);
    margin-bottom: 8px;
}

/* 按钮样式 */
.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.btn-lg {
    padding: 12px 30px;
    font-size: 1.1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-1px);
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color), #146c43);
    border: none;
}

.btn-success:hover {
    background: linear-gradient(135deg, #146c43, #0f5132);
    transform: translateY(-1px);
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning-color), #e55a00);
    border: none;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #e55a00, #cc4900);
    transform: translateY(-1px);
}

/* 结果容器样式 */
.result-container {
    max-height: 400px;
    overflow-y: auto;
    border-radius: 8px;
}

.json-viewer {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 1.5rem;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    white-space: pre-wrap;
    max-height: 300px;
    overflow-y: auto;
    color: var(--dark-color);
}

/* 状态样式 */
.status-success {
    color: var(--success-color);
    font-weight: 600;
}

.status-failed {
    color: var(--danger-color);
    font-weight: 600;
}

.status-partial {
    color: var(--warning-color);
    font-weight: 600;
}

/* 徽章样式 */
.badge {
    font-size: 0.9rem;
    padding: 8px 12px;
    border-radius: 6px;
}

/* 统计卡片样式 */
.text-center h6 {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 10px;
}

/* 滚动条样式 */
.result-container::-webkit-scrollbar,
.json-viewer::-webkit-scrollbar {
    width: 8px;
}

.result-container::-webkit-scrollbar-track,
.json-viewer::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.result-container::-webkit-scrollbar-thumb,
.json-viewer::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.result-container::-webkit-scrollbar-thumb:hover,
.json-viewer::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 加载动画 */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container-fluid {
        padding: 15px;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .btn-lg {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    .json-viewer {
        font-size: 0.8rem;
        padding: 1rem;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeIn 0.5s ease-out;
}

/* 提示框样式 */
.alert {
    border: none;
    border-radius: 8px;
    font-weight: 500;
}

.alert-success {
    background: linear-gradient(135deg, #d1edff, #a7d8f0);
    color: #0c5460;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da, #f1aeb5);
    color: #721c24;
}

/* 表单文本样式 */
.form-text {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 5px;
}

/* 快速选择按钮样式 */
.btn-outline-info {
    border-color: var(--info-color);
    color: var(--info-color);
}

.btn-outline-info:hover {
    background-color: var(--info-color);
    border-color: var(--info-color);
    color: white;
}

/* 批量结果卡片样式 */
.card.mb-2 {
    margin-bottom: 0.5rem !important;
}

.card.mb-2 .card-header {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #6c757d, #495057);
}

.card.mb-2 .card-body {
    padding: 0.75rem 1rem;
}

.card.mb-2 .json-viewer {
    max-height: 150px;
    font-size: 0.8rem;
    padding: 0.75rem;
}
